import * as VueRouter from "vue-router"

const routes = [
    {path: '/', component: () => import("@/views/Home/index.vue")},
    {path: '/My', component: () => import("@/views/My/index.vue")},
    {
        path: "/Order/:status",
        component: () => import("@/views/My/Order/index.vue")
    },
    {
        path: "/OrderDetail/:id",
        component: () => import("@/views/My/OrderDetail/index.vue")
    },
    {
        path: "/List",
        component: () => import("@/views/List/index.vue")
    },
    {
        path: "/Bus",
        component: () => import("@/views/Bus/index.vue")
    }, {
        path: "/MyLikeList",
        component: () => import("@/views/MyLikeList/index.vue")
    }
]

const router = VueRouter.createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: VueRouter.createWebHashHistory(),
    routes, // `routes: routes` 的缩写
})
export default router;